package hnair.com.shopstore;

import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import hnair.com.shop.activities.ProxyActivity;
import hnair.com.shop.app.Shop;
import hnair.com.shop.delegates.ShopDelegate;
import hnair.com.shop_ec.launcher.LauncherDelegate;
import hnair.com.shop_ec.sign.SignInDelegate;
import hnair.com.shopstore.delegate.MainDelegate;

public class MainActivity extends ProxyActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
    }

    @Override
    public ShopDelegate setRootDelegate() {
        return new SignInDelegate();
//        return new LauncherDelegate();
    }

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//
//        Toast.makeText(Shop.getApplication(), "获取到Context了", Toast.LENGTH_LONG).show();
//    }
}
